import {action, observable} from 'mobx'
import {FormFieldStore} from "../Form";
import cloneDeep from "lodash/cloneDeep";

export class RadioGroupStore extends FormFieldStore {

    @observable options = []

    constructor(props) {
        super(props)
        const {options} = props
        this.options = cloneDeep(options || [])
    }

    @action changeOptions(options) {
        this.options = options

    }
}
